<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
    window.onload=function () {
        //创建一个时间
        var myDate = new Date();
        document.getElementById('currentTime').innerText=myDate.getTime();
    }

    function showPage(){
        //获取到输入的url路径的值
        var targetUrl=document.getElementById('url').value;
        //获取显示框的位置，将targetUrl显示出来
        document.getElementById('iframePosition').src=targetUrl;
    }

</script>

<div>
    <p>请输入要加载的地址：<span id="currentTime"></span></p>
    <input type="text" id="url" value="https://www.baidu.com">
    <input type="button" value="提交" onclick="showPage()">
</div>
<div>
    <p>显示的位置：</p>
    <iframe id="iframePosition" style="width: 100%;height: 500px;"></iframe>
</div>

</body>
</html>